<?php

namespace designpatterns\observer;

/**
 * 主题接口
 * Interface Subject
 * @package designpatterns\observer
 */
interface Subject
{
    public function attach(Observer $observer);
    public function detach(Observer $observer);
    public function notify();
}